//
//  String+Emoji.swift
//  emotIcon
//
//  Created by 半缘君 on 15/12/15.
//  Copyright © 2015年 banyuanjun.cn. All rights reserved.
//

import Foundation

extension String {
    
    var emoji: String {
        let scanner = NSScanner(string: self)
        
        var result:UInt32 = 0
        
        scanner.scanHexInt(&result)
        
        let char = Character(UnicodeScalar(result))
        
     return "\(char)"
    }
}